Spring mvc: controller returns [][], usable in jsp with foreach, but how to bind?

Posted by Joe on Stack Overflow See other posts from Stack Overflow or by Joe
Published on 2010-04-29T14:53:06Z Indexed on 2010/04/29 14:57 UTC
Read the original article Hit count: 211

Filed under:
|
|

I'm building a spring mvc application. Now the problem I have is the following.

I have a controller which adds a DayInfo[][] to my ModelMap. (DayInfo has an id, a title (String) and Text(also String).

Now the problem I have is that I have no problem displaying this DayInfo[][] with foreach tags in my jsp. However I'm outputting the Title property as an input box(type text), and I'd like to be able to update this value (and thus saving it to be a database but that shouldn't be a problem). However I'm having trouble with binding this value to the input box so that it is actually returned to the controller. If anyone has some advice it would be welcome.

© Stack Overflow or respective owner

Related posts about spring-mvc

Related posts about jsp